<template>
  <div
    class="flex h-screen w-full flex-col overflow-hidden bg-neutral-100 transition-colors duration-300 dark:bg-dark-bg"
  >
    <TitleBar />
    <div class="mb-3 mr-3 mt-1 flex flex-1 overflow-hidden">
      <div class="ml-2 mr-[6px] h-full w-12 flex-shrink-0">
        <SideBar />
      </div>
      <div class="h-full w-full overflow-hidden">
        <div class="h-full w-full overflow-auto">
          <router-view></router-view>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import TitleBar from './components/TitleBar.vue'
import SideBar from './components/SideBar.vue'
// import { useThemeStore } from './store'

// 注入主题配置
// const themeConfig = inject('themeConfig')

// const themeStore = useThemeStore()

onMounted(() => {
  // 初始化主题
  // themeStore.initTheme()
})
</script>

<style>
body {
  color: #334155;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
